package com.gitee.srurl.core.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author zxw
 * @date 2023/5/8 21:49
 */
@Data
@Component
@ConfigurationProperties(prefix = "short-url.id-gen.use-type.oid")
public class OidProperties {

    /**
     * 机器ID
     */
    private Long workerId;

    /**
     * 是否开启批量获取ID
     */
    private Boolean useBatch;

    /**
     * 批量获取数量
     */
    private Integer batchNum;

    /**
     * 存储类型
     */
    private String storeType;
}
